import upload from '@/utils/upload'
import request from '@/utils/request'



//暂停列表 技师端
export function getPauseAapList(params) {
  return request({
    url: '/system/pause/aapList',
    method: 'get',
	params
  })
}


//管理端
export function getaapManagerList(params) {
  return request({
    url: '/system/pause/aapManagerList',
    method: 'get',
	params
  })
}
//申请暂停
export function addpause(data) {
  return request({
    url: '/system/pause',
    method: 'post',
    data: data
  })
}
//修改暂停
export function editPause(data) {
  return request({
    url: '/system/pause',///system/holiday
    method: 'put',
    data: data
  })
}
//取消暂停
export function delPause(ids) {
  return request({
    url: '/system/pause/'+ids,///system/holiday
    method: 'delete',
  })
}
// 申请通过/拒绝
export function upatepause(data) {
  return request({
    url: '/system/pause',
    method: 'put',
    data: data
  })
}
//技师请假列表
export function getholidayList(params) {
  return request({
    url: '/system/holiday/appList',
    method: 'get',
	params
  })
}

export function getappHolidayRule(params) {
  return request({
    url: '/system/holiday/appHolidayRule',
    method: 'get',
	params
  })
}
//申请请假
export function addholiday(data) {
  return request({
    url: '/system/holiday/addPc',///system/holiday
    method: 'post',
    data: data
  })
}
//修改请假
export function editHoliday(data) {
  return request({
    url: '/system/holiday',///system/holiday
    method: 'put',
    data: data
  })
}
//取消请假
export function delHoliday(ids) {
  return request({
    url: '/system/holiday/'+ids,///system/holiday
    method: 'delete',
  })
}
export function upateholiday(data) {
  return request({
    url: '/system/holiday',
    method: 'put',
    data: data
  })
}
export function gettechnicianList(params) {
  return request({
    url: '/system/technician/appGetList',
    method: 'get',
	params
  })
}
export function webAppletList(data) {
  return request({
    url: '/system/item/technician/webAppletList',
    method: 'post',
	data: data
  })
}

export function gettechnicianwage(params) {
  return request({
    url: '/system/technician/wage/my/wage',
    method: 'get',
	params
  })
}
export function getmanager(params) {
  return request({
    url: '/system/store-manager/wage/mySelf',
    method: 'get',
	params
  })
}
export function gettechnicianlist(params) {
  return request({
    url: '/system/technician/wage/list',
    method: 'get',
	params
  })
}
export function holidayCheckLeaveDays(params) {
  return request({
    url: '/system/holiday/checkLeaveDays',
    method: 'get',
	params
  })
}